package com.meida.module.bus.client.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.base.entity.AbstractAllEntity;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.meida.common.mybatis.annotation.TableAlias;

/**
 * 员工业绩表
 *
 * @author flyme
 * @date 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_achievement")
@TableAlias("achievement")
@ApiModel(value = "BusAchievement对象", description = "员工业绩表")
public class BusAchievement extends AbstractAllEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "achievementId", type = IdType.ASSIGN_ID)
    private Long achievementId;

    @ApiModelProperty(value = "物品数量")
    private Integer goodsNum;

    @ApiModelProperty(value = "(1是，2否)是否是会员卡")
    private Integer isVipCard;

    @ApiModelProperty(value = "所属销售")
    private Long employeeId;

    @ApiModelProperty(value = "来源类型(1订单，2非订单开卡）")
    private Integer sourceType;

    @ApiModelProperty(value = "开卡地(其它物品销售经理所在区域)")
    private Long airportId;

    @ApiModelProperty(value = "(订单详情Id或者 viprecordId)")
    private Long businessId;

    private Long goodsId;

    @ApiModelProperty(value = "用户Id")
    private Long userId;

    @ApiModelProperty(value = "支付方式")
    private String payType;

    @ApiModelProperty(value = "线下支付方式")
    private Long paywayId;

    @ApiModelProperty(value = "支付金额")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "1有效，2失效")
    private Integer achievementState;

    @ApiModelProperty(value = "所属公众号")
    private Long weChatId;


}
